<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/10/20 11:22
 */
namespace app\api\validate;
class Login extends BaseValidate
{
    public function checkWxLoginParam()
    {
         $this->rule = [
            'js_code' => 'require|isNotEmpty',
        ];
         $this->message = [
            'js_code' => '登录凭证code必填',
        ];
    }
    public function checkLoginParam()
    {
        $this->rule = [
            'mobile' => 'require|isMobile',
            'password' => 'require|isNotEmpty',
            //'code' => 'require|isNotEmpty',
        ];
        $this->message = [
            'mobile.require' => '手机号码必填',
            'mobile.isMobile' => '手机号码格式错误',
            'password' => '密码必填',
            //'code' => '验证码必填',
        ];
    }
}